third-party-prc-api icon

third-party-prc-api

(0 reviews)

Western Union - Get DeliveryOptionTemplate

Description: This API returns a Delivery Option template with a list of field specifications required to be included in the Send Money request with D2B delivery service.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, x-channel-id, client_secret

Optional Headers: x-sub-channel-id, , x-bank-id, x-user-id, x-debug-flag, x-customer-id, Authorization

Paramaters:

URI Params: NA

Query Params: language (Optional)
countryCurrencyCode (Mandatory)
deliveryServiceType (Mandatory)

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
"status": {
    "success": true,
    "code": "200",
    "arabicMessage": "تمت العملية بنجاح",
    "englishMessage": "The Operation has been Successfully Completed"
    },
"response": {
    "deliveryOptionsTemplate":[
    {
        "product": "DLVSVCS_UNIVERSAL              H2H",
        "category": "4020",
        "templateIndex": "000",
        "description": "0; ; 0; ; ;EPT ; 0;"
    },
    {
        "product": "UNIVERSAL ADDRESS DLV          H2H",
        "category": "INDEPT",
        "templateIndex": "000",
        "description": "223; EARTHPORT IN/INR D2B; ; ; 223; ; 223; 09:30:00Z,0;"
    }]
 }
}

Sample Error Response:

500 :

{
    "success”:  false,
    "code”:  500,
    "reasonCode”: "Internal Server Error",
    "arabicMessage”: "",
     "englishMessage":"NO MATCHING RECORDS FOUND",
    "backendError": "NO MATCHING RECORDS FOUND",  (if debug flag is on)
    "backendCode": "D0004" (if debug flag is on)
}

Reviews